<!DOCTYPE html>
<html>
<head>
    <title>JQSTU内容管理系统 - JQSTU</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link href="/favicon.ico" rel="shortcut icon">
    <link rel="stylesheet" href="/public/layui/css/layui.css">
    <link rel="stylesheet" href="/public/css/global.css">
    <script src="/public/js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="/public/layui/layui.js" type="text/javascript"></script>
</head>



<body>


{block name="main"}{/block}



<script>
    layui.use(['layer','jquery'], function(){
        var layer = layui.layer,
            jq = layui.jquery;

        jq('.logi_logout').click(function(){
            loading = layer.load(2, {
                shade: [0.2,'#000']
            });
            jq.getJSON('{:url("login/logout")}',function(data){
                if(data.code == 200){
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 1, time: 1000}, function(){
                        location.reload();
                    });
                }else{
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
                }
            });
        });

    })
</script>
</body>
</html>